package top.chenfu1201.clientApi.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.chenfu1201.clientApi.service.MailService;

@RestController
@RequestMapping("/mail")
public class MailController {

    @Autowired
    private MailService mailService;

    @PostMapping("/simple")
    public void sendSimpleMail(String from, String to, String cc, String subject, String content) {
        this.mailService.sendSimpleMail(from, to, cc, subject, content);
    }

}
